#ifndef DATABASEWINDOW_H
#define DATABASEWINDOW_H

#include <QMainWindow>
#include <QSqlQuery>
#include <QSqlError>
#include <QInputDialog>
#include <QSqlRecord>
#include <QSpinBox>
#include <QPushButton>
#include <QFileDialog>

//#include "deviceinfodialog.h"

namespace Ui {
class DataBaseWindow;
}

class DataBaseWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit DataBaseWindow(QWidget *parent = 0);
    ~DataBaseWindow();
    
    void initTable();
    void deleteRow(int row);

    QSpinBox *ageBox;

private slots:

    void on_addAction_triggered();
    void on_delAction_triggered();

    void on_modityAction_triggered();

    void on_selectAction_triggered();

    void on_exportAction_triggered();

private:
    Ui::DataBaseWindow *ui;
};

#endif // DATABASEWINDOW_H
